package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_user_order_details
 * @author 
 */
public class SesUserOrderDetails implements Serializable {
    /**
     * ID,主键PK
     */
    private Long detailsid;

    /**
     * 用户订单信息表ID
     */
    private Long userorderid;

    /**
     * 商品数量
     */
    private Long usernumber;

    /**
     * 商品总价
     */
    private Float detailsldes;

    /**
     * 床基本信息表ID(是哪件商品)
     */
    private Long bedtypeid;

    private static final long serialVersionUID = 1L;

    public Long getDetailsid() {
        return detailsid;
    }

    public void setDetailsid(Long detailsid) {
        this.detailsid = detailsid;
    }

    public Long getUserorderid() {
        return userorderid;
    }

    public void setUserorderid(Long userorderid) {
        this.userorderid = userorderid;
    }

    public Long getUsernumber() {
        return usernumber;
    }

    public void setUsernumber(Long usernumber) {
        this.usernumber = usernumber;
    }

    public Float getDetailsldes() {
        return detailsldes;
    }

    public void setDetailsldes(Float detailsldes) {
        this.detailsldes = detailsldes;
    }

    public Long getBedtypeid() {
        return bedtypeid;
    }

    public void setBedtypeid(Long bedtypeid) {
        this.bedtypeid = bedtypeid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserOrderDetails other = (SesUserOrderDetails) that;
        return (this.getDetailsid() == null ? other.getDetailsid() == null : this.getDetailsid().equals(other.getDetailsid()))
            && (this.getUserorderid() == null ? other.getUserorderid() == null : this.getUserorderid().equals(other.getUserorderid()))
            && (this.getUsernumber() == null ? other.getUsernumber() == null : this.getUsernumber().equals(other.getUsernumber()))
            && (this.getDetailsldes() == null ? other.getDetailsldes() == null : this.getDetailsldes().equals(other.getDetailsldes()))
            && (this.getBedtypeid() == null ? other.getBedtypeid() == null : this.getBedtypeid().equals(other.getBedtypeid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDetailsid() == null) ? 0 : getDetailsid().hashCode());
        result = prime * result + ((getUserorderid() == null) ? 0 : getUserorderid().hashCode());
        result = prime * result + ((getUsernumber() == null) ? 0 : getUsernumber().hashCode());
        result = prime * result + ((getDetailsldes() == null) ? 0 : getDetailsldes().hashCode());
        result = prime * result + ((getBedtypeid() == null) ? 0 : getBedtypeid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", detailsid=").append(detailsid);
        sb.append(", userorderid=").append(userorderid);
        sb.append(", usernumber=").append(usernumber);
        sb.append(", detailsldes=").append(detailsldes);
        sb.append(", bedtypeid=").append(bedtypeid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}